/**
The routing of this file will not show the layout.
It is an independent new page.
the contents of the file still need to log in to access
 */
import type { AppRouteModule } from '/@/router/types';
import { t } from '/@/hooks/web/useI18n';
import { CMSLAYOUT } from '/@/router/constant';

// test
// http:ip:port/main-out
export const mainOutRoutes: AppRouteModule[] = [
  {
    path: '/cms',
    name: 'cms',
    component: CMSLAYOUT,
    //ignoreAuth: true,
    meta: {
      title: '数字转化',
    },
    children: [
      {
        path: 'main-out',
        name: 'MainOut',
        component: () => import('/@/views/demo/main-out/index.vue'),
        meta: {
          title: 'MainOut',
          ignoreAuth: true,
        },
      },
      {
        path: 'index',
        name: 'Index',
        component: () => import('/@/views/sys/index/index.vue'),
        meta: {
          title: t('routes.basic.index'),
          ignoreAuth: true,
        },
      },
      {
        path: 'policeIndex',
        name: 'PoliceIndex',
        component: () => import('/@/views/index/police/index.vue'),
        meta: {
          title: t('routes.basic.index'),
          ignoreAuth: true,
        },
      },
    ],
  },

  //saas

  {
    path: '/saas',
    name: 'saas',
    component: () => import('/@/views/saas/index.vue'),
    meta: {
      title: t('routes.basic.index'),
      ignoreAuth: true,
    }
  }
];

export const mainOutRouteNames = mainOutRoutes.map((item) => item.name);
